<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo ($System_namex); ?></title>
<link href="__PUBLIC__/Css/body.css" rel="stylesheet" media="screen" type="text/css" />
<link href="__PUBLIC__/Css/menu.css" rel="stylesheet" media="screen" type="text/css" />
<link href="__PUBLIC__/Css/main.css" rel="stylesheet" media="all" type="text/css" />
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/Base.js\"></sc"+"ript>")</script>
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/prototype.js\"></sc"+"ript>")</script>
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/mootools.js\"></sc"+"ript>")</script>
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/Ajax/ThinkAjax.js\"></sc"+"ript>")</script>
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/Form/CheckForm.js\"></sc"+"ript>")</script>
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/common.js\"></sc"+"ript>")</script>
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/Util/ImageLoader.js\"></sc"+"ript>")</script>
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/myfocus-1.0.4.min.js\"></sc"+"ript>")</script>
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/all.js\"></sc"+"ript>")</script>
<script language="JavaScript">
ifcheck = true;
function CheckAll(form)
{
	for (var i=0;i<form.elements.length-2;i++)
	{
		var e = form.elements[i];
		e.checked = ifcheck;
	}
	ifcheck = ifcheck == true ? false : true;
}
</script>
<script>
//function checkLeave(){
//	window.parent.stateChangeIE();
//}
</script>
</head>
<body>

<div class="ncenter_box">
<div class="accounttitle"><h1>手动匹配</h1></div>
<!-- <div class="accounttitle"><h1>结算每周分红 </h1></div> -->
<table width="100%" border="0" cellspacing="10" cellpadding="0">
    <form method="post" name="match" action="__URL__/manaul_match">
    <tr>
      <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="tab11 tab_bor">
    <h2>匹配区</h2>
    <tr>
      <td width="50%" height="20"> 进场订单编号:<input type="text" name="inCode"/></td>
    </tr>
    <tr>
      <td width="50%">出场订单编号:<input type="text" name="outCode"/></td>
    </tr>
    <tr>
      <td><input type="submit" name="action" value="匹配订单" class="button_text" onClick="if(confirm('确定要匹配订单吗?')) return true; else return false;">&nbsp;&nbsp;</td>
      </tr>
    </form>
</table>
<table width="100%" border="0" cellspacing="10" cellpadding="0">
      <div id="result" style="text-align:center">
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tab11 tab_bor">
        <h2>挂单进场  <?php echo ($one); ?></h2>
      <tr>
          <td width="20%" height="20"> 订单编号</td>
          <td width="20%">日期</td>
          <td width="10%">会员编号</td>
          <td width="10%">挂单金额</td>
          <td width="20%">状态</td>
          <td width="20%">是否超时</td>
		   <td width="20%">是否手动</td>
      </tr>
      <?php if(is_array($elist)): $i = 0; $__LIST__ = $elist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
          <td width="20%" height="20"><?php echo ($vo['order_id']); ?></td>
          <td width="20%"><?php echo (date('Y-m-d H:i:s',$vo['rdt'])); ?></td>
          <td width="10%"><?php echo ($vo['user_id']); ?></td>
          <td width="10%"><?php echo ($vo['money']); ?></td>
          <td width="20%">
          	<?php if(($vo['is_sh']) == "0"): ?>审核中<?php endif; ?>
          	<?php if(($vo['is_sh']) == "1"): ?>部分匹配<?php endif; ?>
          	<?php if(($vo['is_sh']) == "2"): ?>已匹配成功<?php endif; ?></td>
          <td width="20%">
            <?php if(($vo['is_out']) == "0"): ?>未超时<?php endif; ?>
            <?php if(($vo['is_out']) == "1"): ?>已超时<?php endif; ?></td>
			
			
			 <td width="20%"><?php echo ($vo['sz']); ?></td>
      </tr><?php endforeach; endif; else: echo "" ;endif; ?>
      </table>
	
	  
	  
      <table width="100%" style="background:#f7f9fa; border-top:1px solid #f2f3f6;">
            <tr align='center'>
                <td><?php echo ($page); ?></td>
            </tr>
        </table> 
      <br/>
<br/>

<table width="100%" border="0" cellspacing="10" cellpadding="0">
      <div id="result" style="text-align:center">
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tab11 tab_bor">
        <h2>挂单出场<?php echo ($two); ?></h2>
      <tr>
          <td width="20%" height="20"> 订单编号</td>
          <td width="20%">日期</td>
          <td width="10%">会员编号</td>
          <td width="10%">挂单金额</td>
          <td width="20%">状态</td>
          <td width="10%">是否超时</td>
          <td width="10%">操作</td>
		  <td width="20%">是否手动</td>
      </tr>
      <?php if(is_array($eblist)): $i = 0; $__LIST__ = $eblist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$evo): $mod = ($i % 2 );++$i;?><tr>
          <td width="20%" height="20"><?php echo ($evo['order_id']); ?></td>
          <td width="20%"><?php echo (date('Y-m-d H:i:s',$evo['rdt'])); ?></td>
          <td width="10%"><?php echo ($evo['user_id']); ?></td>
          <td width="10%"><?php echo ($evo['money']); ?></td>
          <td width="20%">
          	<?php if(($evo['is_sh']) == "0"): ?><span style="color:#017ce8">审核中
            	<?php if(($evo['is_buy']) == "0"): ?><a href="__URL__/eb_listDelAC/del_id/<?php echo ($evo['id']); ?>">删除订单</a><?php endif; ?>
            </span><?php endif; ?>
            <?php if(($evo['is_sh']) == "1"): ?>部分匹配<?php endif; ?>
            <?php if(($evo['is_sh']) == "2"): ?>已匹配成功<?php endif; ?>
           </td>
           <td width="10%">
            <?php if(($evo['is_out']) == "0"): ?>未超时<?php endif; ?>
            <?php if(($evo['is_out']) == "1"): ?>已超时<?php endif; ?></td>
          <td width="10%">
          	<?php if(($evo['is_pay']) == "1"): ?>已确认
            <?php else: ?>
              <?php if(($evo['is_buy']) == "0"): ?>审核中<?php endif; ?>
              <?php if(($evo['is_buy']) == "1"): ?>等待汇款<?php endif; ?>
              <?php if(($evo['is_buy']) == "2"): ?><a href="__URL__/admin_eblist_done/cid/<?php echo ($vo['id']); ?>">确认收款<a/><?php endif; endif; ?>
                      </td>
					  <td width="20%"><?php echo ($evo['sz']); ?></td>
      </tr><?php endforeach; endif; else: echo "" ;endif; ?>
      </table>
      <table width="100%" style="background:#f7f9fa; border-top:1px solid #f2f3f6;">
            <tr align='center'>
                <td><?php echo ($page1); ?></td>
            </tr>
      </table> 
      
      
      <table width="100%" align="center">
      <tr>
      
      
       <td><input type="button" name="autopp" value="一键匹配"  class="button_text" onclick="autopp()"/><span style="color:red;margin-left:10px;">(此按钮用于匹配已经排完队的订单)</span></td>
      
      
      
      <td align="center"><form method='post' action="__APP__/Cash/adminCash/">订单搜索：<input type="text" name="UserID" title="帐号查询">
      &nbsp;&nbsp;&nbsp;&nbsp;
      <input type="submit" name="Submit" value="查询"  class="button_text"/>
      &nbsp;
      <input name="button3" type="button" onClick="window.location.href='/C132-ac/index.php/YouZi/financeDaoChu_DingDan/'" value="将所有订单导出Excel表格" class="button_text" />
      <input type="hidden" name="__hash__" value="dc746af1069f4f22fd2ec7948822dddc_55079f608c8dfc447d9e2e3cf71ecb44" /><input type="hidden" name="__hash__" value="dc746af1069f4f22fd2ec7948822dddc_55079f608c8dfc447d9e2e3cf71ecb44" /></form></td>
      </tr>
      </table>
      </div>
</table>
      </div>
</table>

</div>

<script type="text/javascript">

</script>

</body>
</html>